package com.jhh.pay.center.dao;

import com.jhh.pay.center.model.AppChannel;
import com.jhh.pay.center.model.AppChannelValuePair;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;

/**
 * @author tangxd
 * @Description: TODO
 * @date 2017/12/4
 */
@Mapper
public interface AppChannelMapper {
    long insert(AppChannel ac);

    long update(AppChannel ac);

    long delete(@Param("appId") int appId, @Param("channelId") int channelId);

    AppChannel get(@Param("appId") int appId, @Param("channelId") int channelId);

    Collection<AppChannelValuePair> getsByAppId(@Param("appId") int appId);

    Collection<AppChannelValuePair> getsByChannelId(@Param("channelId") int channelId);
}
